// clienttest2Dlg.h : header file
//

#pragma once
#include "../LicenseProxy/LicenseProxy.h"
USING_LICENSE_PROXY;

// Cclienttest2Dlg dialog

class Cclienttest2Dlg : public CDialog, public ILicenseRequestListener
{
// Construction
public:
	Cclienttest2Dlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_CLIENTTEST2_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	//ILicenseRequestListener
	virtual void OnRequestFailed(const LicenseRequestType& type, const tErrorInfo* error);
	virtual void OnRequestSuccess(const LicenseRequestType& type, void* param = NULL);

	DWORD m_nBIOSID;
	DWORD m_nCPUID;
	int m_nMBID;
	DWORD m_nNICID;
	DWORD m_nDiscID;
	DWORD m_nOSID;
	CString m_szReg;
	CString m_szAct;
	UINT m_nServerPort;
	CString m_strServerURL;
	ILicenseProxy* m_licenseProxy;
	afx_msg void OnBnClickedGetHwinfo();
	afx_msg void OnBnClickedCheckReg();
	afx_msg void OnBnClickedCheckAct();
	afx_msg void OnBnClickedButtonIpod();
	afx_msg void OnBnClickedActiveServer();
	afx_msg void OnBnClickedCheckServer();
	afx_msg void OnBnClickedSetServerAddress();
	afx_msg void OnDestroy();
};
